package com.scs.application.modules.fsd.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.SimpleDataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Description: 登录记录
 */
@Data
@Accessors(chain = true)
@EntityClassAnnotation(remark = "智能柜登录记录表")
@TableName("fsd_auth")
public class FsdAuth extends SimpleDataEntity {

    @EntityFieldAnnotation(
            text = "站点编号",
            length = "30",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String stationCode;

    @EntityFieldAnnotation(
            text = "用户id",
            type = EntityFieldType.LONG,
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String userId;

    @EntityFieldAnnotation(
            text = "登录时间",
            type = EntityFieldType.DATETIME,
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String startTime;

    @EntityFieldAnnotation(
            text = "退出时间",
            type = EntityFieldType.DATETIME,
            default_value = "",
            comment = ""
    )
    private String endTime;

}
